package org.inspursc.s0517.health.evaluation.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.inspursc.s0517.health.common.entity.AbstractIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * institution assessment
 */
@Data
@Entity(name = "t_institution_result")
//@DynamicUpdate
public class InsSurveyAnswer extends AbstractIdEntity {

    //organization id
    @Column(name = "organization_id")
    private Integer organizationId;

    //appraiser id
    @Column(name = "appraiser_id")
    private Integer appraiserId;

    //survey id
    @Column(name = "survey_id")
    private Integer surveyId;

    //survey name
    @Column(name="survey_name")
    private String surveyName;

    @Column(name = "assess_result")
    private String assessResult;

    //survey date
    @Column(name = "date_time")
    private Date dateTime;

    //survey total score
    @Column(name = "total_score")
    private Double totalScore;

    //assessment result
    @Column(name = "description")
    private String description;

    //assessment suggestion
    private String suggestion;

    //kpi data type is Json
    @Column(name = "kpi")
    private String kpi;

}
